package com.pansoft.kline.model;

import java.io.Serializable;
import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/27 11:03
 * @desc :  分析界面的成交量数据
 * @version: 1.0
 */
public class DealRealAnayzeTurnoverOrderModel implements Serializable {


    /**
     * code : 0
     * data : {"trades":[{"time":1543286992000,"price":"3821.31","originalPrice":3821.31,"volume":"0.001","type":2},{"time":1543286373000,"price":"3814.61","originalPrice":3814.61,"volume":"0.232","type":1},{"time":1543286373000,"price":"3814.38","originalPrice":3814.38,"volume":"0.326","type":1},{"time":1543286372000,"price":"3820.12","originalPrice":3820.12,"volume":"0.336","type":1},{"time":1543286372000,"price":"3815.73","originalPrice":3815.73,"volume":"0.427","type":1},{"time":1543286372000,"price":"3819.01","originalPrice":3819.01,"volume":"0.298","type":1},{"time":1543286372000,"price":"3816.75","originalPrice":3816.75,"volume":"0.878","type":1},{"time":1543286372000,"price":"3819.51","originalPrice":3819.51,"volume":"0.066","type":1},{"time":1543286372000,"price":"3818.73","originalPrice":3818.73,"volume":"0.009","type":1},{"time":1543286372000,"price":"3816.08","originalPrice":3816.08,"volume":"0.309","type":1},{"time":1543286372000,"price":"3815.4","originalPrice":3815.4,"volume":"0.031","type":1},{"time":1543286372000,"price":"3815.26","originalPrice":3815.26,"volume":"0.013","type":1},{"time":1543286372000,"price":"3817.88","originalPrice":3817.88,"volume":"0.018","type":1},{"time":1543286372000,"price":"3817.02","originalPrice":3817.02,"volume":"0.081","type":1},{"time":1543286372000,"price":"3817.94","originalPrice":3817.94,"volume":"0.042","type":1},{"time":1543286372000,"price":"3815.87","originalPrice":3815.87,"volume":"0.093","type":1},{"time":1543286372000,"price":"3818.95","originalPrice":3818.95,"volume":"0.102","type":1},{"time":1543286372000,"price":"3817.97","originalPrice":3817.97,"volume":"0.001","type":1},{"time":1543286372000,"price":"3812.5","originalPrice":3812.5,"volume":"0.032","type":1},{"time":1543286372000,"price":"3812.09","originalPrice":3812.09,"volume":"0.016","type":1},{"time":1543286372000,"price":"3815.87","originalPrice":3815.87,"volume":"0.063","type":1},{"time":1543286372000,"price":"3812.94","originalPrice":3812.94,"volume":"0.008","type":1},{"time":1543286372000,"price":"3816.82","originalPrice":3816.82,"volume":"0.013","type":1},{"time":1543286372000,"price":"3813.49","originalPrice":3813.49,"volume":"0.047","type":1},{"time":1543286372000,"price":"3814.37","originalPrice":3814.37,"volume":"0.03","type":1},{"time":1543286370000,"price":"3811.81","originalPrice":3811.81,"volume":"0.002","type":1},{"time":1543286370000,"price":"3809.56","originalPrice":3809.56,"volume":"0.003","type":1},{"time":1543286370000,"price":"3811.26","originalPrice":3811.26,"volume":"0.01","type":1},{"time":1543286368000,"price":"3811.81","originalPrice":3811.81,"volume":"0","type":1},{"time":1543286368000,"price":"3810.33","originalPrice":3810.33,"volume":"0","type":1},{"time":1543286368000,"price":"3809.65","originalPrice":3809.65,"volume":"0","type":1},{"time":1543286368000,"price":"3808.97","originalPrice":3808.97,"volume":"0","type":1},{"time":1543286368000,"price":"3809.92","originalPrice":3809.92,"volume":"0","type":1},{"time":1543286368000,"price":"3810.57","originalPrice":3810.57,"volume":"0","type":1},{"time":1543286368000,"price":"3810.36","originalPrice":3810.36,"volume":"0","type":1},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.024","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.006","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.019","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.001","type":2},{"time":1543286330000,"price":"3807.26","originalPrice":3807.26,"volume":"0.021","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.024","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.026","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.03","type":2},{"time":1543286330000,"price":"3807.25","originalPrice":3807.25,"volume":"0.007","type":2},{"time":1543286330000,"price":"3807.26","originalPrice":3807.26,"volume":"0.004","type":2},{"time":1543286330000,"price":"3807.26","originalPrice":3807.26,"volume":"0.007","type":2},{"time":1543286287000,"price":"3802.25","originalPrice":3802.25,"volume":"0.01","type":2},{"time":1543286287000,"price":"3803.01","originalPrice":3803.01,"volume":"0.004","type":2},{"time":1543286287000,"price":"3802.82","originalPrice":3802.82,"volume":"0.006","type":2},{"time":1543286287000,"price":"3802.96","originalPrice":3802.96,"volume":"0.002","type":2},{"time":1543286287000,"price":"3803.28","originalPrice":3803.28,"volume":"0.002","type":2},{"time":1543286287000,"price":"3802.48","originalPrice":3802.48,"volume":"0.006","type":2},{"time":1543286287000,"price":"3802.37","originalPrice":3802.37,"volume":"0.006","type":2},{"time":1543286287000,"price":"3802.8","originalPrice":3802.8,"volume":"0.007","type":2},{"time":1543286287000,"price":"3802.7","originalPrice":3802.7,"volume":"0.008","type":2},{"time":1543286287000,"price":"3802.85","originalPrice":3802.85,"volume":"0.011","type":2},{"time":1543286287000,"price":"3803.18","originalPrice":3803.18,"volume":"0.01","type":2},{"time":1543286177000,"price":"3803.6","originalPrice":3803.6,"volume":"0","type":1},{"time":1543286177000,"price":"3802.17","originalPrice":3802.17,"volume":"0","type":1},{"time":1543286177000,"price":"3800.79","originalPrice":3800.79,"volume":"0","type":1},{"time":1543286177000,"price":"3800.77","originalPrice":3800.77,"volume":"0","type":1}]}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<TradesBean> trades;

        public List<TradesBean> getTrades() {
            return trades;
        }

        public void setTrades(List<TradesBean> trades) {
            this.trades = trades;
        }

        public static class TradesBean {
            /**
             * time : 1543286992000
             * price : 3821.31
             * originalPrice : 3821.31
             * volume : 0.001
             * type : 2
             */

            private long time;
            private String price;
            private double originalPrice;
            private String volume;
            private int type;

            public long getTime() {
                return time;
            }

            public void setTime(long time) {
                this.time = time;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public double getOriginalPrice() {
                return originalPrice;
            }

            public void setOriginalPrice(double originalPrice) {
                this.originalPrice = originalPrice;
            }

            public String getVolume() {
                return volume;
            }

            public void setVolume(String volume) {
                this.volume = volume;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }
        }
    }
}
